package com.bah.tract.action;

import com.bah.tract.model.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("workStoreHome")
public class WorkStoreHome extends EntityHome<WorkStore> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 207098732563867047L;

	public void setWorkStoreId(Long id) {
		setId(id);
	}

	public Long getWorkStoreId() {
		return (Long) getId();
	}

	@Override
	protected WorkStore createInstance() {
		WorkStore workStore = new WorkStore();
		return workStore;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public WorkStore getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
